<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" href="resources/mytheme/css/main.css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Approve Only!!!!</title>
</head>
<body>
	<div id="headerContainer">
		<div class="centerContainer">
			<ol>
			<sec:authorize ifAllGranted="ROLE_ADMIN">
				<li><a href="AdminUsers">Users</a></li>
				<li><a href="AdminRejectedClaims">Rejected Claims</a></li>
				<li><a href="AdminAcceptedClaims">Accepted Claims</a></li>
				<li><a href="AdminAllClaims">All Claims</a></li>
			</sec:authorize>
			<sec:authorize ifAnyGranted="ROLE_ADMIN, ROLE_ADJUSTER">
				<li><a href="InsuranceAdjuster">Adjust Claims</a></li>
			</sec:authorize>
			</ol>
		</div>
		<!-- /centerContainer -->

	</div>
	<!-- /headerContainer -->

	<div id="secondHeaderContainer">
		<div class="logoContainer">
			<img src="resources/mytheme/images/logo2.png" alt="logo" width="205"
				height="89">
		</div>
		<!-- /logoContainer -->
		<div class="navContainer">

			<ul id="navWrapper">
				<li><a href="/AcmeClaims">Home</a></li>
				<sec:authorize ifNotGranted="ROLE_ADMIN">
				<c:if test="${pageContext.request.userPrincipal.name != null}">
					<li>
						<!-- Menu A --> <a href="#">Claims</a>
						<ul>
							<li><a href="ClaimPortal">Submit Claim</a></li>
							<li><a href="MyAccount">View Claim</a></li>
						</ul>
					</li>
					<li><a href="MyAccount">My Account</a></li>
				</c:if>
				</sec:authorize>
				<li><a href="locatedoctor">Find a Doctor</a></li>
			</ul>
		</div>
		<!-- /navContainer -->
	</div>
	<!-- /secondHeaderContainer -->

	<div id="thirdHeaderContainer">
		<div class="lowerheaderContainer">
			<c:if test="${pageContext.request.userPrincipal.name != null}">
				<ol>
					<li><a href="<c:url value="/MyAccount" />">${pageContext.request.userPrincipal.name}</a></li>
					<li>|</li>
					<li><a href="<c:url value="/Logout" />"> Logout</a></li>
				</ol>
			</c:if>
			<c:if test="${pageContext.request.userPrincipal.name == null}">
				<ol>
					<li><a href="Login">Log-In</a></li>
					<li>|</li>
					<li><a href="register">Register</a></li>
				</ol>
			</c:if>
		</div>
		<!-- /lowerHeader-->
	</div>

	<h1>
		<a href="InsuranceAdjuster">To Deny Claims Click Here</a>....This page
		Approves Claims
	</h1>

	<form:form cammandname="InsuranceAdjusterClaimApprove" method="post">
		<table>
			<tr>
				<td width="100px" style="text-align: center">Claim #</td>
				<td width="100px" style="text-align: center">Claim Type</td>
				<td width="120px" style="text-align: center">Name of Doctor</td>
				<td width="100px" style="text-align: center">Claim Date</td>
				<td width="120px" style="text-align: center">Claim Approve</td>
				<!-- <td width="100px" style="text-align: center">Claim Deny</td> -->
				<!-- <td width="100px" style="text-align: center">Submit</td> -->
		</table>
		<table>
			<c:forEach items="${submittedClaims}" var="Claims">

				<tr>
					<td width="100px" style="text-align: center">${Claims.claimID}</td>
					<td width="100px" style="text-align: center">${Claims.type}</td>
					<td width="120px" style="text-align: center">${Claims.admittingPhysician }</td>
					<td width="100px" style="text-align: center">${Claims.date}</td>
					<td width="100px" style="text-align: center"><form action="InsuranceAdjusterClaimApprove" method="post">
					<input type="submit" name="status" value="${Claims.claimID}" />
			</form></td>
				</tr>
			</c:forEach>
		</table>
	</form:form>

</body>
</html>